﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {

    public Vector2 jumpForcce = new Vector2(0, 300);
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
        if (Input.GetKey("space")){
            rigidbody2D.velocity = Vector2.zero;
            rigidbody2D.AddForce(jumpForcce);
        }
	}
}
